package com.sanbi.shield.server.common.bean.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 资源树节点VO
 *
 * @author XiaoQingqing
 * @since 2024/08/15
 */
@Data
@Accessors(chain = true)
@ApiModel("资源树节点")
public class ResourceTreeNodeVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("父主键")
    private Long pid;

    @ApiModelProperty("资源名称")
    private String name;

    @ApiModelProperty("资源标识")
    private String key;

    @ApiModelProperty("图标地址")
    private String iconUrl;

    @ApiModelProperty("子节点")
    private List<ResourceTreeNodeVO> children;
}
